// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成
package com.fowo.api.controller;

import com.fowo.api.common.model.IdListPo;
import com.fowo.api.common.model.R;
import com.fowo.api.service.impl.AmazonFinancialEventGroupServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Tag(name = "亚马逊结算中心-交易汇总")
@RequestMapping("/api/amazon-financial-event-group")
@RestController
public class AmazonFinancialEventGroupCustomController {

  @Resource
  private AmazonFinancialEventGroupServiceImpl service;

  @Operation(summary = "手工入账: /未到账 or /已到账")
  @PostMapping("manualReceiptCustom/{type}")
  public R manualReceipt(@RequestBody IdListPo po, @PathVariable String type) {
    return R.run(() -> service.manualReceipt(po.getIds(),type));
  }

}
